package de.fhhof.XMLParser;

import org.jdom.Element;

public class Title {

	String text;
	String lang;
	public Title(String lang) {
		super();
		this.lang = lang;
	}
	public Title(Element child) {
		this(child.getAttributeValue("lang"));
		setText(child.getTextTrim());
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getLang() {
		return lang;
	}
	public void setLang(String lang) {
		this.lang = lang;
	}
	@Override
	public String toString() {
		return "Title [text=" + text + ", lang=" + lang + "]";
	}
	
	
	
}
